package com.artifact.mit.mypoint.activity;

import static com.artifact.mit.mypoint.util.DefaultLeftMenu.ORDER_HISTORY;
import android.os.Bundle;
import android.widget.ListView;

import com.artifact.mit.mypoint.adapter.OrderHistoryAdapter;
import com.artifact.mit.mypoint.model.OrderHistory;
import com.artifact.mit.mypoint.R;

public class OrderHistoryActivity extends MyPointBaseActivity{
	
	private ListView orderHistory;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState, ORDER_HISTORY);
		setContentView(R.layout.order_history);
		
		orderHistory = (ListView) findViewById(R.id.listView1);
		OrderHistoryAdapter adapter = new OrderHistoryAdapter(this);
		adapter.add(new OrderHistory("14/10/2013", "PO-40633", "2", R.drawable.voucher));
		adapter.add(new OrderHistory("15/10/2013", "PO-40638", "2", R.drawable.voucher));
		adapter.add(new OrderHistory("16/10/2013", "PO-40640", "2", R.drawable.voucher));
		adapter.add(new OrderHistory("17/10/2013", "PO-40646", "2", R.drawable.voucher));
		
		orderHistory.setAdapter(adapter);
	}
}


